package com.damei.hospital_android.base;

import android.os.Bundle;
import android.util.Log;

import com.damei.hospital_android.R;
import com.damei.hospital_android.activity.tabbar.DashboardFragment;
import com.damei.hospital_android.activity.tabbar.HomeFragment;
import com.damei.hospital_android.activity.tabbar.NotificationsFragment;
import com.damei.hospital_android.service.NavigationCallBack;
import com.damei.hospital_android.utils.BottomBar;

import butterknife.BindView;
import butterknife.ButterKnife;

public class TabBarActivity extends BaseActivity {

    @BindView(R.id.bottom_tab_bar)
    BottomBar tabBar;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_tabbar);
        ButterKnife.bind(this);

        tabBar.setContainer(R.id.fl_container)
                .setTitleBeforeAndAfterColor("#8E8E93", "#CD3232")
                .addItem(HomeFragment.class,
                        "首页",
                        R.drawable.nav_mendian_nor,
                        R.drawable.nav_mendian_pre)
                .addItem(DashboardFragment.class,
                        "数据",
                        R.drawable.nav_zichan_nor,
                        R.drawable.nav_zichan_pre)
                .addItem(NotificationsFragment.class,
                        "我的",
                        R.drawable.nav_wode_nor,
                        R.drawable.nav_wode_pre)
                .setIconWidth(24)
                .setIconHeight(24)
                .setFirstChecked(0)
                .build();
    }
}
